<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>then-链式调用</title>
</head>
<body>
<script>
    const promise=new Promise((resolve, reject) => {
        resolve('SUCCESS!!')
    })
    promise.then(value => {
        console.log('养成了'+value)
        return '可以杀牛了'
    }).then(value => {
        console.log('杀牛 '+value)
    }).then(value => {
        console.log('剃毛')
    }).then(value => {
        console.log('加工')
    }).then(value => {
        console.log('吃肉')
    })
</script>
</body>
</html>